{extend name="base" /}
{block name="body"}
<div class="layui-body">
    <!--tab标签-->
    <div class="layui-tab layui-tab-brief">
        <ul class="layui-tab-title">
            <li class="layui-this">版本配置</li>
        </ul>
        <div class="layui-tab-content">
            <div class="layui-tab-item layui-show">
                <form class="layui-form form-container" action="{:url('admin/system/updateVersionConfig')}" method="post">
                    <div class="layui-form-item">
                        <label class="layui-form-label">配置标识</label>
                        <div class="layui-input-block">
                            <input type="text" name="name" value="now_version" class="layui-input" readonly>
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">配置名称</label>
                        <div class="layui-input-block">
                            <input type="text" name="title" value="版本号" placeholder="请输入SEO标题" autocomplete="off" class="layui-input">
                        </div>
                    </div>
					<div class="layui-form-item">
                        <label class="layui-form-label">版本号</label>
                        <div class="layui-input-block">
                            <input type="text" name="value" value="{$config.value}" placeholder="请输入版本号" autocomplete="off" class="layui-input">安卓和ios版本号以,分割示例第一个数字为安卓第二个数字为ios
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">更新状态</label>
                        <div class="layui-input-block">
                            <input type="radio" name="update_type" value="1" title="普通更新" checked="checked">
                            <input type="radio" name="update_type" value="2" title="强制更新">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">弹框提示</label>
                        <div class="layui-input-block">
                            <textarea type="text" name="pop_value"  placeholder="请输入弹窗信息" class="layui-textarea">{$config.pop_value}</textarea>
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">安卓地址</label>
                        <div class="layui-input-block">
                            <input type="text" name="android_url" value="{$config.android_url}" placeholder="请输入安卓下载地址" autocomplete="off" class="layui-input">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">ios地址</label>
                        <div class="layui-input-block">
                            <input type="text" name="ios_url" value="{$config.ios_url}" placeholder="请输入ios下载地址" autocomplete="off" class="layui-input">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <div class="layui-input-block">
                            <button class="layui-btn" lay-submit lay-filter="*">提交</button>
                            <button type="reset" class="layui-btn layui-btn-primary">重置</button>
                        </div>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>
{/block}